package com.aabte.weather.weatherredis.city.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@NoArgsConstructor
@Data
public class Weather implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * yesterday : {"date":"12日星期四","high":"高温 27℃","fx":"东北风","low":"低温 19℃","fl":"<![CDATA[2级]]>","type":"晴"}
     * city : 深圳
     * forecast : [{"date":"13日星期五","high":"高温 26℃","fengli":"<![CDATA[2级]]>","low":"低温 20℃","fengxiang":"东北风","type":"多云"},{"date":"14日星期六","high":"高温 25℃","fengli":"<![CDATA[2级]]>","low":"低温 20℃","fengxiang":"东北风","type":"阴"},{"date":"15日星期天","high":"高温 26℃","fengli":"<![CDATA[2级]]>","low":"低温 20℃","fengxiang":"东北风","type":"多云"},{"date":"16日星期一","high":"高温 27℃","fengli":"<![CDATA[2级]]>","low":"低温 21℃","fengxiang":"东南风","type":"多云"},{"date":"17日星期二","high":"高温 28℃","fengli":"<![CDATA[2级]]>","low":"低温 22℃","fengxiang":"东风","type":"多云"}]
     * ganmao : 感冒低发期，天气舒适，请注意多吃蔬菜水果，多喝水哦。
     * wendu : 24
     */

    @JsonProperty("yesterday")
    private Yesterday yesterday;
    @JsonProperty("city")
    private String city;
    @JsonProperty("ganmao")
    private String ganmao;
    @JsonProperty("wendu")
    private String wendu;
    @JsonProperty("forecast")
    private List<Forecast> forecast;

}
